<!DOCTYPE html>
<html>

<head>
    <meta content="text/html; charset=utf-8" />
    <title>知识产权后台管理系统-修改知识产权</title>
    <link href="__PUBLIC__/css/bootstrap.min.css" rel="stylesheet">
    <link href="__PUBLIC__/css/mystyle.css" rel="stylesheet">
</head>

<body>
    <!-- 导航栏 -->
    <include file="Public/header" />
    <!-- 发布内容 -->
    <link href="__PUBLIC__/umeditor/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">
    <div class="container">
        <form method="post" class="form-horizontal" action="__URL__/doedit/id/{$info[0].id}" enctype="multipart/form-data">
            <div class="form-group">
                <label class="col-sm-2 control-label">产权名称</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control" name="ip_name" required value="{$info[0].ip_name}">
                </div>
            </div>
            <div class="form-group ">
                <label class="col-sm-2 control-label">联系方式</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control" name="phone" required value="{$info[0].phone}">
                </div>
            </div>
            <div class="form-group ">
                <label class="col-sm-2 control-label">参考价格</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control" name="price" required value="{$info[0].price}">
                </div>
            </div>
            <div class="form-group ">
                <label class="col-sm-2 control-label">知识产权类型</label>
                <div class="col-sm-8">
                    <select class="form-control" name="typeid">
                        <foreach name="typeList" item="type">
                            <if condition="$type.id eq $info[0]['typeid']">
                                <option value="{$type.id}" selected = "selected">{$type.cate_name}</option>
                                <else />
                                <option value="{$type.id}">{$type.cate_name}</option>
                            </if>
                        </foreach>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">封面图片</label>
                <img src="__PUBLIC__/img/info_ico/{$info[0].picurl}" class="col-sm-2 control-label img-thumbnail" width="100" height="100">
                <div class="col-sm-6">
                    <input type="file" name="pic">
                    <p class="help-block">如需更新上传新封面图片,选择一张小于3M的图片上传。</p>
                </div>
            </div>
            <div class="form-group ">
                <label class="col-sm-2 control-label">知识产权简介</label>
                <div class="col-sm-8">
                    <script type="text/plain" name="intro" id="myEditor" style="height:510px;width:100%">{$info[0].intro}</script>
                </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="col-sm-3 col-sm-offset-3">
                <a href="__URL__/index" class="btn btn-primary btn-block">取消</a>
            </div>
            <div class="col-sm-3">
                <input type="submit" value="保存" class="btn btn-primary btn-block" data-toggle="modal">
            </div>
        </form>
    </div>
    <!-- 底部 -->
    <include file="Public/footer" />
    <script type="text/javascript" src="__PUBLIC__/umeditor/third-party/jquery.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/umeditor/umeditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/umeditor/umeditor.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/umeditor/lang/zh-cn/zh-cn.js"></script>
    <script>
    $(function() {
        var um = UM.getEditor('myEditor');
    })
    </script>
</body>

</html>